<?php
namespace h;

/**
 * Description of user
 *
 * @author YeFng
 */
class user {
    function avatar($u, $w=0, $h=0)
    {
        $u = $u ? urlencode($u) : ROOT_URL . STYLE_PATH_F . 'user/avatar.gif';
        $p = "f=$u&w=$w&h=$h&all=1";    
        return \url::g('u=cimg\b&q='. \encrypt::q_ed($p));
    }
}
